import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'

/*-----------尿检-----------*/
const serviceName = '/sjsk-detection-service'
const addUrineAppointment = (params) => postAction(`${serviceName}/urine/addUrineAppointment`, params)
const completeDetectionList = (params) => getAction(`${serviceName}/urine/completeDetectionList`, params)
const inputUrine = (params) => postAction(`${serviceName}/urine/inputUrine`, params)
const overdueUrineEntry = (params) => postAction(`${serviceName}/urine/overdueUrineEntry`, params)
const undoApply = (params) => postAction(`${serviceName}/urine/undoApply`, params)
const urge = (params) => postAction(`${serviceName}/urine/urge`, params)
const urineDataTospecial = (params) => getAction(`${serviceName}/urine/urineDataTospecial`, params)
const urineDetail = (params) => getAction(`${serviceName}/urine/urineDetail/${params}`)
const urineStatistical = (params) => getAction(`${serviceName}/urine/urineStatistical/${params}`)
const waitDetectionList = (params) => getAction(`${serviceName}/urine/waitDetectionList`, params)
const waitDetectionListExportXls = (params) =>
  downFile(`${serviceName}/urine/waitDetectionListExportXls`, params, 'post')
const completeDetectionListExportXls = (params) =>
  downFile(`${serviceName}/urine/completeDetectionListExportXls`, params, 'get')
const cancelUrine = (params) => postAction(`${serviceName}/cancelUrine/cancelUrine`, params)
const cancelUrineDispose = (params) => postAction(`${serviceName}/cancelUrine/cancelUrineDispose`, params)
const planList = (params) => getAction(`${serviceName}/plan/planList/${params}`)
const checkPlan = (params) => getAction(`${serviceName}/plan/checkPlan`, params)
const sjskUrineData = (params) => postAction(`${serviceName}/urineGroovy/sjskUrineData`, params)
const urineCancelDispose = (params) => postAction(`${serviceName}/urineGroovy/urineCancelDispose`, params)
const getMaxUrine = (params) => getAction(`${serviceName}/urine/getMaxUrine/`, params)
const sjskUrineStatistical = (params) => getAction(`${serviceName}/urine/sjskUrineStatistical`, params)
const sjskSewageStatistical = (params) => getAction(`${serviceName}/urine/sjskSewageStatistical`, params)
const assessStatisticalToUrine = (params) => getAction(`${serviceName}/urine/assessStatisticalToUrine`, params)
const wfwgxwbg = (params) => getAction(`${serviceName}/runqian/wfwgxwbg`, params)
const wgxwgjs = (params) => getAction(`${serviceName}/runqian/wgxwgjs`, params)
const checkUrineCancelNum = (params) => getAction(`${serviceName}/runqian/checkUrineCancelNum`, params)

export {
  addUrineAppointment,
  completeDetectionList,
  inputUrine,
  overdueUrineEntry,
  undoApply,
  urge,
  urineDataTospecial,
  urineDetail,
  urineStatistical,
  waitDetectionList,
  waitDetectionListExportXls,
  completeDetectionListExportXls,
  cancelUrine,
  cancelUrineDispose,
  planList,
  checkPlan,
  sjskUrineData,
  urineCancelDispose,
  getMaxUrine,
  sjskUrineStatistical,
  sjskSewageStatistical,
  assessStatisticalToUrine,
  wfwgxwbg,
  wgxwgjs,
  checkUrineCancelNum
}
